package com.netease.nie.service;

import java.util.List;
import java.util.Map;

import com.netease.nie.model.DrawLotteryNormalGoodsInfo;

/**
 * 抽奖商品业务服务接口
 * @author gzlibingjie
 */
public interface DrawLotteryNormalGoodsInfoService {
	
	/**
	 * 获取指定抽奖活动下的抽奖商品列表
	 * @param activityId 抽奖活动ID
	 * @return 抽奖商品列表
	 */
	public List<DrawLotteryNormalGoodsInfo> listByActivityId(Integer activityId);
	
	/**
	 * 根据ID获取抽奖商品信息
	 * @param id 抽奖活动ID
	 * @return 抽奖商品信息
	 */
	public DrawLotteryNormalGoodsInfo queryDrawLotteryNormalGoodsInfoById(int id);
	
	/**
	 * 进行抽奖
	 * @param activityId 抽奖活动的唯一ID
	 * @return 抽中的普通奖品，未抽中返回null
	 */
	public DrawLotteryNormalGoodsInfo draw(Integer activityId);
	
	
	public Map<Integer, DrawLotteryNormalGoodsInfo> queryDrawLotteryNormalGoodsInfoMapByNormalGoodsIds(List<Integer> normalGoodsIds);

}
